<?php 

$sql = "Select * from mode";
$query = $this->db->query($sql);
$result = $query->row();

$mode = $result;

$sql = "Select * from membership where price='0'";
$query = $this->db->query($sql);
$result = $query->row();
$membership = $result;

?>

<div class="member">
	<div class="list-group">
		<div class="list-group-item">
			<span class="font18"> <strong class="text-danger">Navigation</strong>
			</span>
		</div>
		
		<a href="<?= base_url();?>member/dashboard" class="list-group-item">Dashboard</a>
		<a href="<?= base_url();?>member/profile" class="list-group-item">Profile</a> 
		<?php if($mode->mode =='TRUE'){?>
		<a href="<?= base_url();?>member/business/plan" class="list-group-item">Business</a> 
		<?php }else{?>
		<a href="<?= base_url();?>member/business/add/<?= $membership->id; ?>" class="list-group-item">Business</a> 
		<?php }?>
		<a href="<?= base_url();?>member/change_password" class="list-group-item">Change Password</a>
	</div>
</div>
